package model;

public class Student {
    private int id;
    private String name;
    private String gender;
    private int classId;
    private int groupId;
    private int attendance;
    private int questionScore;
    
    public Student(int id, String name, String gender, int classId) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.classId = classId;
        this.attendance = 0;
        this.questionScore = 0;
    }
    
    // Getters and Setters
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    
    public String getGender() { return gender; }
    public void setGender(String gender) { this.gender = gender; }
    
    public int getClassId() { return classId; }
    public void setClassId(int classId) { this.classId = classId; }
    
    public int getGroupId() { return groupId; }
    public void setGroupId(int groupId) { this.groupId = groupId; }
    
    public int getAttendance() { return attendance; }
    public void setAttendance(int attendance) { this.attendance = attendance; }
    
    public int getQuestionScore() { return questionScore; }
    public void setQuestionScore(int questionScore) { this.questionScore = questionScore; }
    
    @Override
    public String toString() {
        return name + " (" + gender + ")";
    }
} 